
"""
## [✍08 docker安装问题](https://www.cnblogs.com/songhaixing/p/15404892.html)
"""

import os



file_dir = r"C:\Users\shx15\Desktop\文档\工作笔记"

file_name_list = os.listdir(file_dir)
file_file_list = [i for i in file_name_list if os.path.isfile(os.path.join(file_dir,i))]
def test():
    print(file_file_list[37:])



def gain_title():
    for file_name in file_name_list:
        file_path = os.path.join(file_dir,file_name)
        if os.path.isfile(file_path):
            name_str = file_name.split(".md")[0]
            print(f"## [✍{name_str}]({name_str})")

def gain_context():
    article_name_list = file_file_list[13:]
    for file_name in article_name_list:
        blog_name = f"✍{file_name.split('.md')[0]}"
        file_path = os.path.join(file_dir, file_name)
        with open(file_path,"rt",encoding="utf8") as f:
            blog_res = f.read()
        print("---------->",blog_name)
        print(blog_res)


# gain_title()
# gain_context()
test()


